package com.wan37.gate.domain;

import com.google.protobuf.Message;

/**
 * @author : luoyong
 * @date : 2020-05-26 16:55
 **/
public class RequestMessage {

    /**
     * 客户端的连接
     */
    private ClientConnection clientConnection;
    /**
     * 客户端发过来的消息
     */
    private Message message;


    public RequestMessage(ClientConnection clientConnection, Message message) {
        this.clientConnection = clientConnection;
        this.message = message;
    }

    public ClientConnection getClientConnection() {
        return clientConnection;
    }

    public void setClientConnection(ClientConnection clientConnection) {
        this.clientConnection = clientConnection;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "RequestMessage{" +
                "clientConnection=" + clientConnection +
                ", message=" + message +
                '}';
    }
}
